|
diffpress5 2.2.1
|
Diff Press 5 Click Example. More...
Macros | |
| #define | MIKROBUS_POSITION_DIFFPRESS5 MIKROBUS_1 |
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
Diff Press 5 Click Example.
This example demonstrates the use of the Diff Press 5 Click board. It showcases how to initialize the device, calibrate the zero-pressure offset, and read the differential pressure data in Pascals (Pa) from the sensor.
The demo application is composed of two sections:
Initializes the logger and the Diff Press 5 Click driver. The application then performs zero-pressure offset calibration to ensure accurate pressure measurements. During the calibration, it is crucial to avoid applying pressure to the sensor.
Continuously reads the differential pressure from the sensor and logs the values in Pascals (Pa).
| #define MIKROBUS_POSITION_DIFFPRESS5 MIKROBUS_1 |
| void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
| void application_task | ( | void | ) |
| int main | ( | void | ) |